/*
 * Node.cpp
 *
 *  Created on: Aug 1, 2012
 *      Author: adroaldo
 */

#include <my-wtr-proto/node.h>

node::node(nsaddr_t i_node) {
	this->i_node = i_node;
}

node::~node() {
}

state node::getMy_before_prev_state() const
{
    return my_before_prev_state;
}

state node::getMy_prev_state() const
{
    return my_prev_state;
}

state node::getMy_state() const
{
    return my_state;
}

nsaddr_t node::getNode_address() const
{
    return this->i_node;
}

nsaddr_t node::getPred() const
{
    return pred;
}

nsaddr_t node::getRing_address() const
{
    return ring_address;
}

nsaddr_t node::getSucc() const
{
    return succ;
}

nsaddr_t node::getVpred() const
{
    return vpred;
}

nsaddr_t node::getVring_address() const
{
    return vring_address;
}

nsaddr_t node::getVsucc() const
{
    return vsucc;
}

void node::setMy_before_prev_state(state my_before_prev_state)
{
    this->my_before_prev_state = my_before_prev_state;
}

void node::setMy_prev_state(state my_prev_state)
{
    this->my_prev_state = my_prev_state;
}

void node::setMy_state(state my_state)
{
    this->my_state = my_state;
}

void node::setNode_address(nsaddr_t i_node)
{
    this->i_node = i_node;
}

void node::setPred(nsaddr_t pred)
{
    this->pred = pred;
}

void node::setRing_address(nsaddr_t ring_address)
{
    this->ring_address = ring_address;
}

void node::setSucc(nsaddr_t succ)
{
    this->succ = succ;
}

void node::setVpred(nsaddr_t vpred)
{
    this->vpred = vpred;
}

void node::setVring_address(nsaddr_t vring_address)
{
    this->vring_address = vring_address;
}

void node::setVsucc(nsaddr_t vsucc)
{
    this->vsucc = vsucc;
}
